package com.naizhuai.ui.entity;

import com.google.gson.Gson;
import com.naizhuai.ui.task.deliverentity.TaskType;

import java.util.List;

/**
 * @author：lichenxi
 * @date 2018/4/21 17
 * email：525603977@qq.com
 * Fighting
 */
public class AddQuestion {
    //选好的方案ID
    private String schemeId;
    //标题
    private String title;
    //图片
    private List<String> imgs;
    //描述内容
    private String detail;
    //流程id
    private String taskFlowId;
    //指定人
    private String managerUid;
    //周期类型
    private String circleType;

    //描述标签
    private String descLabel;
    //部门id
    private String departmentId="";

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    private String questionId;

    private  List<TaskType> mCycleTypes;

    public AddQuestion setCycleTypes(List<TaskType> cycleTypes) {
        mCycleTypes = cycleTypes;
        return this;
    }

    public List<TaskType> getCycleTypes() {
        return mCycleTypes;
    }

    public String getQuestionId() {
        return questionId;
    }

    public AddQuestion setQuestionId(String questionId) {
        this.questionId = questionId;
        return this;
    }

    public String getSchemeId() {
        return schemeId;
    }

    public AddQuestion setSchemeId(String schemeId) {
        this.schemeId = schemeId;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public AddQuestion setTitle(String title) {
        this.title = title;
        return this;
    }

    public String getImgs() {
        return new Gson().toJson(imgs);
    }

    public AddQuestion setImgs(List<String> imgs) {
        this.imgs = imgs;
        return this;
    }

    public String getDetail() {
        return detail;
    }

    public AddQuestion setDetail(String detail) {
        this.detail = detail;
        return this;
    }

    public String getTaskFlowId() {
        return taskFlowId;
    }

    public AddQuestion setTaskFlowId(String taskFlowId) {
        this.taskFlowId = taskFlowId;
        return this;
    }

    public String getManagerUid() {
        return managerUid;
    }

    public AddQuestion setManagerUid(String managerUid) {
        this.managerUid = managerUid;
        return this;
    }



    public String getDescLabel() {
        return descLabel;
    }

    public AddQuestion setDescLabel(String descLabel) {
        this.descLabel = descLabel;
        return this;
    }
}
